package nancal.mp.db.mongo.table

import java.io.*
import nbcp.base.db.*
import nbcp.base.comm.*
import nbcp.base.extend.*
import nbcp.base.enums.*
import nbcp.base.utils.*
import nbcp.myoql.db.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.mongo.*
import nbcp.myoql.db.mongo.base.*
import nbcp.myoql.db.mongo.component.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*



class RefundDataMeta(private val parentPropertyName: String): MongoColumnName() {
    constructor(value: MongoColumnName) : this(value.toString()) {}
    val product = IdNameUrlMeta(mongoColumnJoin(this.parentPropertyName, "product"))
    val number = mongoColumnJoin(this.parentPropertyName, "number")
    val payAmount = mongoColumnJoin(this.parentPropertyName, "payAmount")
    val refundAmount = mongoColumnJoin(this.parentPropertyName, "refundAmount")
    val reason = mongoColumnJoin(this.parentPropertyName, "reason")
    val mobile = mongoColumnJoin(this.parentPropertyName, "mobile")
    val userName = mongoColumnJoin(this.parentPropertyName, "userName")
    val images = IdUrlMeta(mongoColumnJoin(this.parentPropertyName, "images"))
    val status = mongoColumnJoin(this.parentPropertyName, "status")
    val corpApply = mongoColumnJoin(this.parentPropertyName, "corpApply")
    val deliveryInfo = OrderDeliveryDataMeta(mongoColumnJoin(this.parentPropertyName, "deliveryInfo"))
    override fun toString(): String {
        return mongoColumnJoin(this.parentPropertyName).toString()
    }
}

